package comday05.itheima03;

import java.util.Arrays;

public class Demo03 {
    public static void main(String[] args) {
        //基本类型
        int a = 10;
        int b = a;

        b = 20;

        System.out.println(a);  //10
        System.out.println(b);  //20



        //引用类型
        int[] arr = new int[4]; // 0 0 0 0
        int[] brr = arr;

        brr[0] = 10;
        brr[1] = 20;

        System.out.println(Arrays.toString(arr));  // 10 20 0 0
        System.out.println(Arrays.toString(brr));  // 10 20 0 0
    }


}
